package com.gc.server.dao;

import com.gc.server.entity.SaleRecordEntity;
import com.gc.server.vo.SaleRecordVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
/**
 * 销量Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Mapper
public interface SaleRecordDao extends BaseDao<SaleRecordEntity> {

    List<SaleRecordVo> findVo(SaleRecordVo vo);

    SaleRecordVo getVo(Long id);


    List<SaleRecordVo> findByDate(@Param("month") Integer month,@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("shopId") Long shopId,@Param("userId") Long userId,@Param("headId") Long headId,@Param("level") String level);

}
